<template>
  <el-row
    :class="'interview-via-box'"
    :style="{ paddingTop: isShowModeTitle ? '' : '20px' }"
  >
    <div class="sub-module-title" v-if="isShowModeTitle">
      {{ modeTitleText }}
    </div>
    <el-col :span="24" class="icon-box">
      <span class="iconfont icon-xiaolian-mian not-go-icon"></span>
      <span class="inter-txt-box">
        <span class="title-txt">面试通过</span>
        <span class="title-small-txt">面试反馈 </span>
        <span class="title-small-sign">：</span>
        <span class="title-small-desc">{{ viaData.feed_back }}</span>
      </span>
    </el-col>
    <el-col :span="24">
      <el-row :class="'via-info-box'">
        <el-col :span="24" class="txt-box">
          <span class="txt-tip">入场时间</span>
          <span class="text-sign">：</span>
          <span class="txt">{{ viaData.admittime }}</span>
        </el-col>
        <el-col :span="24" class="txt-box">
          <span class="txt-tip">外包人员汇报对象</span>
          <span class="text-sign">：</span>
          <span class="txt">{{ viaData.admitlinkman }}</span>
        </el-col>

        <el-col :span="24" class="txt-box info-item-flex">
          <span class="txt-tip">入场地点</span>
          <span class="text-sign">：</span>
          <p class="txt">{{
            viaData.admitaddress
          }}</p>
        </el-col>
      </el-row>
    </el-col>
  </el-row>
</template>
<script>
export default {
  props: {
    viaData: {
      type: Object,
      default: {},
    },
    isShowModeTitle: {
      type: Boolean,
      default: false,
    },
    modeTitleText: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
  beforeMount() {
    console.log("=====================");
    console.log(this.viaData);
  },
};
</script>
<style lang="scss">
.interview-via-box {
  background-color: #fff;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  .icon-box {
    text-align: left;
  }
  .not-go-icon {
    display: inline-block;
    width: 90px;
    height: 122px;
    line-height: 122px;
    text-align: center;
    margin-left: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 60px;
    color: #2bc27f;
    float: left;
  }
  .inter-txt-box {
    display: inline-block;
    margin-top: 28px;
    width: 82%;
    float: left;
    .title-txt {
      display: block;
      font-size: 17px;
      color: #636363;
      margin-bottom: 6px;
    }

    .title-small-txt {
      color: #b0b0b0;
      font-size: 14px;
      float: left;
    }
    .title-small-sign {
      color: #b0b0b0;
      float: left;
    }
    .title-small-desc {
      float: left;
      display: inline-block;
      color: #b0b0b0;
      width: 85%;
      font-size: 14px;
    }
  }
  .via-info-box {
    padding-top: 25px;
    padding-bottom: 25px;
    width: 89%;
    margin-left: 50px;
    border-radius: 4px;
    border: 1px solid #f7f7f7;
    background-color: #fcfcfc;
  }
  .txt-box {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    .txt-tip,
    .txt,
    .text-sign {
      display: inline-block;
      float: left;
      // height: 22px;
      height: auto;
      line-height: 22px;
    }
    .text-sign {
      // margin-left: 5%;
    }
    .txt-tip {
      width: 150px;
      text-align: right;
    }
    .txt {
      width: 60%;
      text-align: left;
    }
  }
}
</style>
